home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10739 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  928 b 

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: 16-bit memset?
  5. Date: 19 Mar 1996 09:49:57 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4ims45INNr0i@keats.ugrad.cs.ubc.ca>
  8. References: <joules-1803962243060001@badboy.mit.edu> <4ill6r$qnm@nntp.interaccess.com>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4ill6r$qnm@nntp.interaccess.com>,
  12. Brian V. McGroarty <brianmcg@interaccess.com> wrote:
  13.  >What system and what compiler are you using?  Many C libraries will fill
  14.  >out unaligned starts and ends and then use the largest machine word to fill
  15.  >the middle section of a memset.
  16.  
  17. But it will store bytes to the middle section. You couldn't store a pattern
  18. like:
  19.  
  20.     FF 00 FF 00 FF 00 FF 00 ...
  21.  
  22. for instance.
  23.  
  24. This is what I understand by storing a single value to an array of 16-bit
  25. types.
  26. -- 
  27.  
  28.